package com.stu.day16.Demo2;

import org.junit.jupiter.api.Test;

/**
 * @author zy
 * @date 2025/2/14 19:23
 */
public class IOTest {
    @Test
    public void testAdd() {
        IProduceDao pd = new ProduceDaoImpl();
        Product p1 = new Product(1,"商品1");
        Product p2 = new Product(2,"商品2");
        Product p3 = new Product(3,"商品3");

        pd.add(p1);
        pd.add(p2);
        pd.add(p3);
    }

    @Test
    public void testFindAll() {
        IProduceDao pd = new ProduceDaoImpl();
        System.out.println(pd.findAll());
    }

    @Test
    public void testFindById() {
        IProduceDao pd = new ProduceDaoImpl();

    }
}
